package com.kdgz.kdgz.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Desc MyBatisPlus配置类
 * @date 2021/3/17
 */
@Configuration
@MapperScan("com.kdgz.kdgz.mapper")
public class MyBatisPlusConfig {
    /**
     * 分页拦截器
     *
     * @return {@link PaginationInterceptor}
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); }
}
